package com.zijidelu.luframework.config.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(value = "lu")
public class LuFrameworkProperties {
    @Value("${spring.application.name}")
    private String applicationName;

    /**
     * 自动扫描配置
     */
    private LuAutoProperties auto = new LuAutoProperties();

    /**
     * 字典翻译配置
     */
    private LuDictProperties dict = new LuDictProperties();

    @Data
    public static class LuAutoProperties {
        /**
         * 是否开启自动扫描器
         */
        private boolean enableAutoScanner = true;
    }

    @Data
    public static class LuDictProperties {
        private boolean strictMode = true;
    }

}